package org.codefinger.dao.callback;

import java.sql.ResultSet;

import org.codefinger.dao.QueryCallback;
import org.codefinger.dao.impl.ResultSetCallback;

public class ResultQueryCallback<T> implements ResultSetCallback<T> {

	private QueryCallback<T>	callback;

	public ResultQueryCallback(QueryCallback<T> callback) {
		super();
		this.callback = callback;
	}

	@Override
	public T getResult(ResultSet resultSet, String[] aliases) throws Throwable {
		return callback.getResult(resultSet, aliases);
	}

}
